package com.jader.beans;

import java.io.Serializable;

public class Goods_Detail implements Serializable {

	private static final long serialVersionUID = 1L;

	private int goodsid;
	private int goods_praise_count;
	private boolean isCollection;
	private Seller seller;
	private Goods_comment goods_comment;

	public Goods_Detail() {
		super();
	}

	public Goods_Detail(int goodsid, int goods_praise_count, Seller seller,
			Goods_comment goods_comment, boolean isCollection) {
		super();
		this.goodsid = goodsid;
		this.goods_praise_count = goods_praise_count;
		this.seller = seller;
		this.goods_comment = goods_comment;
		this.isCollection = isCollection;
	}

	public int getGoods_praise_count() {
		return goods_praise_count;
	}

	public void setGoods_praise_count(int goods_praise_count) {
		this.goods_praise_count = goods_praise_count;
	}

	public Seller getSeller() {
		return seller;
	}

	public void setSeller(Seller seller) {
		this.seller = seller;
	}

	public int getGoodsid() {
		return goodsid;
	}

	public void setGoodsid(int goodsid) {
		this.goodsid = goodsid;
	}

	@Override
	public String toString() {
		return "Goods_Detail [goodsid=" + goodsid + ", goods_praise_count="
				+ goods_praise_count + ", isCollection=" + isCollection
				+ ", seller=" + seller + ", goods_comment=" + goods_comment
				+ "]";
	}

	public Goods_comment getGoods_comment() {
		return goods_comment;
	}

	public void setGoods_comment(Goods_comment goods_comment) {
		this.goods_comment = goods_comment;
	}

	public boolean isCollection() {
		return isCollection;
	}

	public void setCollection(boolean isCollection) {
		this.isCollection = isCollection;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + goodsid;
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Goods_Detail other = (Goods_Detail) obj;
		if (goodsid != other.goodsid)
			return false;
		return true;
	}

}
